package com.yiyahui.project.erp.mapper;

import java.util.List;
import com.yiyahui.project.erp.domain.YiyaAppointment;
import com.yiyahui.project.erp.domain.requestVo.YiyaAppointmentRequest;
import org.apache.ibatis.annotations.Param;

/**
 * 预约Mapper接口
 * 
 * @author yiyahui
 * @date 2020-05-19
 */
public interface YiyaAppointmentMapper 
{
    /**
     * 查询预约
     * 
     * @param id 预约ID
     * @return 预约
     */
    public YiyaAppointment selectYiyaAppointmentById(Long id);

    /**
     * 查询预约列表
     * 
     * @param YiyaAppointmentRequest 预约
     * @return 预约集合
     */
    public List<YiyaAppointment> selectYiyaAppointmentList(YiyaAppointmentRequest YiyaAppointmentRequest);

    /**
     * 新增预约
     * 
     * @param yiyaAppointment 预约
     * @return 结果
     */
    public int insertYiyaAppointment(YiyaAppointment yiyaAppointment);

    /**
     * 修改预约
     * 
     * @param yiyaAppointment 预约
     * @return 结果
     */
    public int updateYiyaAppointment(YiyaAppointment yiyaAppointment);

    /**
     * 删除预约
     * 
     * @param id 预约ID
     * @return 结果
     */
    public int deleteYiyaAppointmentById(Long id);

    /**
     * 批量删除预约
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteYiyaAppointmentByIds(Long[] ids);
}
